I made a very large number of DDGs through Powershell and when I try to change the way they are distributed (I added Office) the recipient list is empty. When I remove the office filter, everyone in the entire department is listed.
This is the cmdlet I have been using:
Set-DynamicDistributionGroup -Identity DDG.Name -RecipientFilter {((Department -eq 'Department') -and (Office -eq 'Office, Office-remote') -and (RecipientType -eq 'UserMailbox'))}
I verified through O365 and exchange and even ran this:
$members = Get-DynamicDistributionGroup ddg@domain.com
Get-Recipient -RecipientPreviewFilter $members.RecipientFilter | ft name, primarysmtpaddress, office >> C:\\members.txt
And when there is no Office filter, all the users' offices are listed.
Am I editing the DDG incorrectly? Or is there an issue with O365 syncing with office filters
- Edited by MDBrauer 16 hours 7 minutes ago